<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2017/9/15
 * Time: 15:14
 */
header("Content-type:text/html;charset=utf-8");
$dir = 'west';
if ($dir=='eest'){
    echo '东';
} elseif($dir=='south'){
    echo "南";
} elseif($dir=='north'){
    echo '北';
} else if ($dir=='west'){
    echo '西';
} else {
    echo '未知';
}